Once you have a custom YUM Repository created (Creating a YUM Repository) then you must do the following to allow installations to take place from that repo.
This walkthrough will also use keys generated from this page (Creating a GPG Key) and keys files created from this page (Signing RPM Packages)
The YUM Repository previously created (/var/www/html/MyRepo)
Navigate to /etc/yum.repos.d
Copy an existing file in that directory and rename it: MyRepo.repo
Edit the new MyRepo.repo file and locate the line that starts with: gpgkey=file...
Modify this line and change the file location to the location of the file from step 3 on this Page
Attempt to install from the MyRepo repository using: yum install <package-name>
Installing from a Custom YUM Repository
Once you have a custom YUM Repository created (Creating a YUM Repository) then you must do the following to allow installations to take place from that repo.
This walkthrough will also use keys generated from this page (Creating a GPG Key) and keys files created from this page (Signing RPM Packages)